﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Calculate jia = new Jia();
            Calculate jian = new Jian();
            Calculate cheng = new Cheng();
            Calculate chu = new Chu();
            Console.WriteLine("提示请输入整数");
            Console.WriteLine("计算相加");
            Write(jia);
            Console.WriteLine("计算相减");
            Write(jian);
            Console.WriteLine("计算相乘");
            Write(cheng);
            Console.WriteLine("计算相除");
            Write(chu);
        }
        public static void Write(Calculate calculate ) 
        {
            calculate.DisplayResult();
        }
    }
}
